<?php

namespace Esseak\FetchPackage\Console;

use Illuminate\Console\Command;

class PublishCommand extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'fetch:publish';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '发布fetch包 【step 1】';

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        // artisan vendor:publish --provider="Esseak\FetchPackage\FetchServiceProvider"
        $this->call('admin:publish');
        $this->call('vendor:publish',['--provider'=>'Esseak\FetchPackage\FetchServiceProvider']);
        return 0;
    }
}
